936637adcf887adf2759b07d35a58909002a259f,platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/CreatePatchCommitExecutor.java,CreatePatchCommitSession,execute,#Collection#String#,163

Before Change


        if (Messages.NO == result[0]) return;
      }
      if (file.getParentFile() == null) {
        WaitForProgressToShow.runOrInvokeLaterAboveProgress(new Runnable() {
          @Override
          public void run() {
            Messages.showErrorDialog(myProject, VcsBundle.message("create.patch.error.title", "Can not write patch to specified file: " +
                                                                                              file.getPath()), CommonBundle.getErrorTitle());
          }
        }, ModalityState.NON_MODAL, myProject);
        return;
      }

After Change


        if (Messages.NO == result[0]) return;
      }
      if (file.getParentFile() == null) {
        WaitForProgressToShow.runOrInvokeLaterAboveProgress(() ->
                                                              Messages.showErrorDialog(myProject, VcsBundle
                                                                .message("create.patch.error.title",
                                                                         "Can not write patch to specified file: " +
                                                                         file.getPath()), CommonBundle.getErrorTitle()),
                                                            ModalityState.NON_MODAL, myProject);
        return;
      }
      try {